#include "process.h"

const char* str[STR_MAX] = {"/", "-","\\", "|"};

void Process()
{
  int count = 0;
  char bar[NUM];
  memset(bar, '\0', NUM);
  while(count <= 100)
  {
    printf("\033[42;34m[%-100s][%3d%%][%s]\033[0m\r", bar, count, str[count % STR_MAX]);
   // printf("[%-100s][%3d%%][%s]\r", bar, count, str[count % STR_MAX]);
    fflush(stdout);
    bar[count++] = STYLE;
    usleep(10000);
   // sleep(1);
  }
  printf("\n");
}


